﻿
using System;
using System.Collections.Generic;

namespace Sharp.Platform.Configuration
{
    /// <summary>
    /// 配置目录类
    /// </summary>
    public class ConfigurationCatalog
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="title">标题</param>
        public ConfigurationCatalog(string title)
        {
            Items = new List<ConfigurationItem>();
            this.Index = -1;
            this.Title = title; 
        }
        /// <summary>
        /// 标题
        /// </summary>
        /// <value>标题</value>
        public string Title { get; set; }
        /// <summary>
        /// 输出序号
        /// </summary>
        /// <value>The index.</value>
        public int Index { get; set; }
 
        /// <summary>
        /// 内含配置项
        /// </summary>
        /// <value>The items.</value>
        public List<ConfigurationItem> Items { get; private set; }

        /// <summary>
        /// 配置文件
        /// </summary>
        /// <value>The type of the configuration.</value>
        public Type ConfigType { get; set; }
 
    }
}
